package com.codefactory.generator.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CodeGenParam {
    private String tableComment;//表中文名
    private String tableName;//表名
    private String modelName;//模块名
    private String moduleApi;//用于RequestMapping上层路径
    private String relationColumn;//关联字段

    public static CodeGenParam of(String name, String comment) {
        CodeGenParam build = CodeGenParam.builder()
                .tableName(name)
                .tableComment(comment)
                .build();
        return build;
    }

}
